package diet.XMLUtils;

import diet.dto.DietDTO;
import java.util.ArrayList;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;

/**
 *
 * @author BadBoy
 */
@XmlAccessorType(XmlAccessType.FIELD)

@XmlRootElement(name = "diets")
public class Diets {

    @XmlElement(required = true)
    private List<DietDTO> diet;

    /**
     * @return the dish
     */
    public List<DietDTO> getDiet() {
        if (diet == null) {
            diet = new ArrayList<DietDTO>();
        }
        return this.diet;
    }
}
